# Contributor: Rejah Rehim <rejah@beaglesecurity.com>
# Maintainer: Rejah Rehim <rejah@beaglesecurity.com>
pkgname=py3-mando
_pkgname=mando
pkgver=0.7.0
pkgrel=1
pkgdesc="Python CLI apps with little to no effort at all!"
options="!check" # no test suite
url="https://mando.readthedocs.org/"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/m/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 README.rst -t "$pkgdir"/usr/share/doc/"$pkgname"
	install -Dm644 LICENSE  -t "$pkgdir"/usr/share/licenses/"$pkgname"

	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/mando/tests
}

sha512sums="
99f4dbf81cff848d5620648693032dc3217bfc9ac686b08eb486718a632fb8c7a2e60bd9993df88e19c5592a946e4e4aa8966bf2d6282c9762bf0b880565151d  mando-0.7.0.tar.gz
"
